extends layout 

block content 

  h1 #{title}

  p #[Strong Do you really want to delete this BookInstance?]

  div(style="margin-left: 20px")

    p #[Strong ID: ] #{bookinstance._id}

    p #[Strong Title: ] #{bookinstance.book.title}

    p #[Strong Imprint: ] #{bookinstance.imprint}

    p #[Strong Status: ]
      if bookinstance.status=='Available'
        span.text-success #{bookinstance.status}
      else if bookinstance.status=='Maintenance'
        span.text-danger #{bookinstance.status}
      else
        span.text-warning #{bookinstance.status} 

    if bookinstance.status!='Available'
      p #[strong Due back:] #{bookinstance.due_back_formatted}

  form(method='POST')
    .form-group
      input#id.form-control(type='hidden', name='id', value=bookinstance._id)
    
    button.btn.btn-primary(type='submit') Delete
  